# -*- coding: utf-8 -*-
# django ORM based factory


from twisted.internet.protocol import Factory
from grdlog.models import Event


class DjangoFactory(Factory):
    
    def insertEntry(self, values):
        values.update({'date': values['time']})
        return Event.objects.create(**values)
        
